<!-- 二级路由 -->
<template>
  <GgPage pageType="2" title="Page">
    <template v-slot:left>
      <gg-flex-menus
        :menus="menuDatas"
        @select="menuSelect"
        :default-active="activeIndex"
      />
    </template>
    <router-view></router-view>
  </GgPage>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      menuDatas: [
        {
          name: "General",
          key: "general",
          menuIcon: "general",
        },
        {
          name: "Users",
          key: "settingUsers",
          menuIcon: "users",
        },
        {
          name: "Companies",
          key: "companies",
          menuIcon: "Locations",
        }
      ],
      activeIndex: "general",
    };
  },
  methods: {
    menuSelect(key) {
      this.activeIndex = key;
      this.$router.push({name:key})
    },
  },
  created() {},
};
</script>
<style lang='less' scoped>
//@import url(); 引入公共css类
</style>